package com.kajespero.dao.user.impl;

import com.kajespero.dao.commons.impl.AbstractReadWriteDAO;
import com.kajespero.dao.user.UserDAO;
import com.kajespero.model.UserBean;

public class UserDAOImpl extends AbstractReadWriteDAO<UserBean, Long> implements UserDAO{

	@Override
	public UserBean createNewBean() throws InstantiationException,IllegalAccessException {
	
		UserBean user = new UserBean();
		user.setId(nextId());
		user.setKey(createKey(user.getId()));
		return user;
	}
}
